# Over-ride default includes so that we have finer control in the makefiles
DEFAULT_INCLUDES="-I."
INCLUDES    = -I${top_srcdir}

COPTIONS="-Wall"

if HAVE_LINUX
LIN_SRC =  pano12info_unix.c
LIN_DEFS = -D__Ansi__=1
else
LIN_SRC =
LIN_DEFS = 
endif

if HAVE_DARWIN
DAR_SRC =  pano12info_unix.c
DAR_DEFS = -D__Ansi__=1
else
DAR_SRC =
DAR_DEFS = 
endif

AM_CPPFLAGS = $(JAVA_FLAGS) $(LIN_DEFS) $(DAR_DEFS) $(TIFF_FLAGS) $(JPEG_FLAGS)
AM_LDFLAGS  = -L${top_builddir}

bin_PROGRAMS = pano12info PTOptimizer 

PTOptimizer_SOURCES = PTOptimizer.c
PTOptimizer_LDADD   = -lpano12

pano12info_SOURCES    = $(WIN_SRC) $(LIN_SRC) $(DAR_SRC)
pano12info_LDADD      = -lpano12

EXTRA_DIST = makefile.ptoptimizer.win32 PTOptimizer.vcproj \
             PTStitcher.cpp PTStitcher.vcproj

MAINTAINERCLEANFILES = \
	Makefile.in
